package com.cauli.file.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * @author Cauli
 * @date 2023-03-18 12:00
 * @description 分享文件
 */
@Data
@TableName("share_file")
@ApiModel(value = "ShareFile", description = "分享文件")
public class ShareFile {
    /**
     * 文件分享ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId("share_file_id")
    private Long shareFileId;

    /**
     * 用户文件ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("user_file_id")
    private Long userFileId;

    /**
     * 分享批次号
     */
    @TableField("share_batch_num")
    private String shareBatchNum;

    /**
     * 分享文件路径
     */
    @TableField("share_file_path")
    private String shareFilePath;
}


